import Vue from 'vue'
import  VueEditor from 'vue2-editor'



const toast = function ({ title, message, type, timeout, cb }) {
  return VueEditor[type](message, title, timeout, cb)
}

// Binding for methods .success(), .error() and etc. You can specify and map your own methods here.
// Required to pipe our outout to UI library (mini-toastr in example here)
// All not-specified events (types) would be piped to output in console.
const options = {
  success: toast,
  error: toast,
  info: toast,
  warn: toast
}

// Activate plugin
Vue.use(VueEditor, options)